package cn.wangzengqiang.study.designpattern.singleton;

/**
 * 懒汉式单例
 */
public class LazyManSingleton {
    private static LazyManSingleton instance = null;

    private LazyManSingleton() {
    }

    public static LazyManSingleton getInstance() {
        if (instance == null) {
            instance = new LazyManSingleton();
        }
        return instance;
    }
}
